/*
 * @Author: jiu yin
 * @Date: 2023-06-01 12:30:32
 * @LastEditTime: 2023-08-16 18:28:20
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \AI admin\src\comment\404\index.tsx
 * jiu
 */
import { useState, useEffect } from "react";
import "./index.scss";
import { useNavigate } from "react-router-dom";
import { path_home } from "@/utils/auth";
function Router404() {
   let navigate = useNavigate();
   const importGlb = (url: string) => new URL(url, import.meta.url).href;
   window.addEventListener("message", function (e) {
      if (e.data?.home == "1") {
         navigate(path_home());
      }
   });
   return (
      <>
         <div className="wrap404">
            <iframe
               src={importGlb("../../assets/404/404.html")}
               frameBorder="0"
               width="100%"
               height="100%"></iframe>
         </div>
      </>
   );
}

export default Router404;
